package com.eshore.norm.pojo.po;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 宿主机监控
 *
 * @author: v-chenjl62
 * @date: 2024/1/19 16:31
 */
@NoArgsConstructor
@Data
public class NormHypervisorHostPO {

    @JsonProperty("message")
    private String message;
    @JsonProperty("content")
    private List<ContentDTO> content;
    @JsonProperty("status")
    private Integer status;
    @JsonProperty("total")
    private Integer total;
    @JsonProperty("timestamp")
    private String timestamp;

    @NoArgsConstructor
    @Data
    public static class ContentDTO {
        @JsonProperty("cpu")
        private String cpu;
        @JsonProperty("cpu_ratio")
        private String cpuRatio;
        @JsonProperty("memory")
        private String memory;
        @JsonProperty("memory_ratio")
        private String memoryRatio;
        @JsonProperty("storage")
        private String storage;
        @JsonProperty("storage_ratio")
        private String storageRatio;
        @JsonProperty("vm_count")
        private String vmCount;
        @JsonProperty("running_count")
        private String runningCount;
        @JsonProperty("hostname")
        private String hostname;
        @JsonProperty("uuid")
        private String uuid;
    }
}
